const app = getApp();

var data = {
  xhx_images: app.xhx_images,
  xhx_route: app.xhx_route,
};

var currentPage = {
  data,
  previewImage,
  onShareAppMessage: function () { }
};

var page = Object.assign({}, currentPage);

Page(page)

function previewImage(){
  wx.previewImage({
    current: app.xhx_images.qcode,
    urls: [app.xhx_images.qcode],
  })
}